#!/bin/sh
#svn remove images/*
#svn remove images180/*
find originals -iname "*.jpg" -exec sh -c 'hash=`md5sum $1 | cut -d " " -f 1`; convert $1 -resize 400x300\> -size 400x300 xc:white +swap -gravity center -composite images/$hash.jpg; convert -rotate 180 images/$hash.jpg images180/$hash.jpg; echo $hash done' {} {} \;
rm -rf originals/*
du -hs *

